package com.bm.server.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 卧底·(TUnder)实体类
 *
 * @author makejava
 * @since 2022-07-23 10:18:51
 */
@Data
@TableName(value = "t_under")
@NoArgsConstructor
public class Under implements Serializable {
    private static final long serialVersionUID = -82910480344376550L;
    
    private Integer id;
    /**
     * 房间id
     */
    private Integer roomid;
    /**
     * 用户id
     */
    private Integer uid;
    /**
     * 投票数
     */
    private Integer nums;

    public Under(Integer roomid, Integer uid) {
        this.roomid = roomid;
        this.uid = uid;
        this.nums = 0;
    }
}

